package playgame;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;

import javax.swing.Timer;

/**
 * Fire handles the fire generated when a bomb explodes.
 * 
 * @author Bomberman
 *
 */
public class Fire extends Bomb implements ActionListener {
	
	Timer timer;
	boolean on;

	public Fire(BufferedImage image) {
		super(image);
		timer = new Timer(5,(ActionListener) this);
		on = true;
	}
	
	public Fire(BufferedImage image, int x, int y) {
		super(image);
		timer = new Timer(5,(ActionListener) this);
		on = true;
		super.setCordX(x);
		super.setCordY(y);
	}
	
	public void actionPerformed(ActionEvent e) {
		on = false;
	}
	public boolean getStatus(){
		return on;
	}
}
